package com.googlecode.flealancemarket.service.commands.impl;

import com.googlecode.flealancemarket.metamodel.Job;
import com.googlecode.flealancemarket.service.commands.GetJobWithMessages;
import com.googlecode.flealancemarket.service.facades.JobFacade;

public class GetJobWithMessagesImpl implements GetJobWithMessages {

    private JobFacade facade;
    private long jobId;

    public Job execute() {
        Job job = facade.getJobWithMessages(jobId);
        return job;
    }

    public void setJobId(long id) {
        jobId = id;
    }
    public long getJobId(){
       return jobId;
    }

    public JobFacade getFacade() {
        return facade;
    }
    public void setFacade(JobFacade facade) {
        this.facade = facade;
    }

}
